#ifndef __LIGHTEDITOR_H__
#define __LIGHTEDITOR_H__

#include "RGBSlider.h"

class LightEditor
{
public:
	LightEditor(CEGUI::Window *parent, SceneManager *sceneManager);
	virtual ~LightEditor(void);

	bool isActive(void);
	bool isVisible(void);
	void setVisible(bool visible);
	void updateLight(Light *light);
	void updateSliders(Light const *light);
	bool handleOkEvent(const CEGUI::EventArgs& e);
	void attach(CEGUI::Window *parent);

public:
	RGBASlider * m_diffuse;
	RGBASlider * m_ambient;
	RGBASlider * m_specular;
	RGBASlider * m_position;
	RGBASlider * m_direction;
	Light * m_light;
	SceneManager * m_sceneManager;
	CEGUI::PushButton * m_ok;
	CEGUI::Window * m_window;
};

#endif //__LIGHTEDITOR_H__

